package speed;

import java.util.Iterator;

public class ArrayReverse {
	public static void main(String[] args) {
		int arr[] = {11,22,33,44,55,66};
		System.out.println("数组逆序");
		for(int i = 0;i < arr.length/2;i++) {
			int temp = arr[arr.length-1-i];
			arr[arr.length-1-i]=arr[i];
			arr[i] = temp;
		}
		for(int i = 0;i < arr.length;i++) {
			System.out.println(arr[i]);
		}
	}

}
